import request from "@/utils/request.js";

const baseUrl = '/admin/comment'

export const getCommentListService = (queryParam) => {
    return request({
        method: 'GET',
        url: `${baseUrl}/${queryParam.page}/${queryParam.size}`,
        params: {stars: queryParam.stars}
    })
}

export const getStarLevelService = () => {
    return request({
        method: 'GET',
        url: `${baseUrl}/starLevel`
    })
}
